if(!dojo._hasResource["market.widgets.component.TribeLayout"]){
dojo._hasResource["market.widgets.component.TribeLayout"]=true;
require(["dojo/_base/declare","dijit/_Widget","dojo/query","dojo/dom-construct","dojo/dom-class"],function(declare,_widget,query,construct,dc){
declare("market.widgets.component.TribeLayout",[_widget],{
_tribeAvatar:null,
tribe:function(){
   var left=dojo.byId("leftSite");
   if (this._tribeAvatar==null){
      var blogAvatar=query('img.avatar',left)[0].parentNode;
      this._tribeAvatar=construct.create('div',{innerHTML:blogAvatar.innerHTML},'centerSite','first');
      dc.replace(query('img.avatar',this._tribeAvatar)[0],'tr_avatar','avatar');
   }
   dc.replace('centerSite','tr_centerSite','centerSite');
   dc.replace('particicipant_menu','homeDeactived','homeActived');
   dc.add('newests','tr_newests');
   left.style.display='none';
   dojo.byId('rightSite').style.display='none';
   dojo.byId('newests').style.display='';
},
blog:function(){
   if (this._tribeAvatar!=null){
      construct.destroy(this._tribeAvatar);
      this._tribeAvatar=null;
   }
   dc.replace('particicipant_menu','homeDeactived','homeActived');
   dc.replace('centerSite','centerSite','tr_centerSite');
   dc.remove('newests','tr_newests');
   dojo.byId('newests').style.display='';
   dojo.byId('leftSite').style.display='';
   dojo.byId('rightSite').style.display='';
},
privateBlog:function(){
   this.blog();
   dc.replace('particicipant_menu','homeActived','homeDeactived');
   dojo.byId('newests').style.display='none';
}
});});}
